package com.analysis.apresunday.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author snake_skin
 * @since 2024-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@Schema(description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "密码")
    // 使用MybatisPlus查询时，不查该字段
    // @TableField(exist = false)
    private String password;

    @Schema(description = "学习兴趣标签(python/Spark)等")
    private String resourceTags;

    @Schema(description = "岗位兴趣标签(开发/运维)等")
    private String employmentTags;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField(update = "now()")
    private LocalDateTime updateTime;


}
